#include "TriangleListMemoryManager.h"

TriangleListMemoryManager::TriangleListMemoryManager() : MemoryManager(TRIANGLELISTMEMORYMANAGER_INITIAL_SIZE, TRIANGLELISTMEMORYMANAGER_RESIZE)
{
	while((unsigned long)(data + cur) & 7)
			cur++;
}

TriangleListMemoryManager::~TriangleListMemoryManager()
{
	
}

char* TriangleListMemoryManager::request(const int amount)
{
	char* tmp = MemoryManager::request<Triangle*>(amount);
		cur += (amount & 1) * 4;
	return tmp;
}
